for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Copyright (c) Arnaud Ligny <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cecil\Collection\Menu;
use Cecil\Collection\Item;
/**
* Class Entry.
class Entry extends Item
{
* Set menu entry name.
* @param $value
* @return $this
public function setName($value)
$this->offsetSet('name', $value);
return $this;
}
* Set menu entry URL.
public function setUrl($value)
$this->offsetSet('url', $value);
* Set menu entry weight.
public function setWeight($value)
$this->offsetSet('weight', $value);
* Get menu entry weight.
* @return integer
integer|null
This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.
@return
public function getWeight()
return $this->offsetGet('weight');
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.