traits/Extendable.php 1 location
|
@@ 50-56 (lines=7) @@
|
47 |
|
return; |
48 |
|
} |
49 |
|
|
50 |
|
foreach ($name as $method => $callable) { |
51 |
|
if (!is_callable($callable)) { |
52 |
|
throw new \InvalidArgumentException("The values of an array passed to the extend() method must be callables."); |
53 |
|
} |
54 |
|
|
55 |
|
$this->extensions[$method] = $callable; |
56 |
|
} |
57 |
|
} |
58 |
|
|
59 |
|
/** |
traits/StaticallyExtendable.php 1 location
|
@@ 46-52 (lines=7) @@
|
43 |
|
return; |
44 |
|
} |
45 |
|
|
46 |
|
foreach ($name as $method => $callable) { |
47 |
|
if (!is_callable($callable)) { |
48 |
|
throw new \InvalidArgumentException("The values of an array passed to the extend() method must be callables."); |
49 |
|
} |
50 |
|
|
51 |
|
self::$extensions[$method] = $callable; |
52 |
|
} |
53 |
|
} |
54 |
|
|
55 |
|
/** |