| 1 | <?php |
||
| 11 | class WriteRepository |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var WebPageRepository |
||
| 15 | */ |
||
| 16 | protected $repository; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * WriteRepository constructor. |
||
| 20 | * |
||
| 21 | * @param WebPageRepository $repository |
||
| 22 | */ |
||
| 23 | public function __construct(WebPageRepository $repository) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param WebPage $webpage |
||
| 30 | */ |
||
| 31 | public function add(WebPage $webpage) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param WebPage $webpage |
||
| 38 | */ |
||
| 39 | public function update(WebPage $webpage) |
||
| 43 | } |
||
| 44 |