Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Testing\Fluent\Concerns;
4
 
5
trait Debugging
6
{
7
    /**
8
     * Dumps the given props.
9
     *
10
     * @param  string|null  $prop
11
     * @return $this
12
     */
13
    public function dump(string $prop = null): self
14
    {
15
        dump($this->prop($prop));
16
 
17
        return $this;
18
    }
19
 
20
    /**
21
     * Dumps the given props and exits.
22
     *
23
     * @param  string|null  $prop
24
     * @return never
25
     */
26
    public function dd(string $prop = null): void
27
    {
28
        dd($this->prop($prop));
29
    }
30
 
31
    /**
32
     * Retrieve a prop within the current scope using "dot" notation.
33
     *
34
     * @param  string|null  $key
35
     * @return mixed
36
     */
37
    abstract protected function prop(string $key = null);
38
}