| 1 | <?php |
||
| 6 | class FollowRedirect |
||
| 7 | { |
||
| 8 | use EnsureIsBooleanTrait; |
||
| 9 | |||
| 10 | const FOLLOW_IS_NOT_A_BOOLEAN = 1; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var bool |
||
| 14 | */ |
||
| 15 | private $follow; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param bool $follow |
||
| 19 | */ |
||
| 20 | public function __construct($follow) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | public function asBoolean() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param mixed $follow |
||
| 37 | */ |
||
| 38 | private function ensureFollow($follow) |
||
| 42 | } |
||
| 43 |