for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the feed-io package.
*
* (c) Alexandre Debril <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FeedIo\Feed\Item;
class Author implements AuthorInterface
{
/**
* @var string
protected $name;
protected $uri;
* @var int
protected $email;
* @return string
public function getName()
return $this->name;
}
* @param string $name
* @return $this
public function setName($name)
$this->name = $name;
return $this;
public function getUri()
return $this->uri;
* @param string $uri
public function setUri($uri)
$this->uri = $uri;
public function getEmail()
return $this->email;
* @param string $email
public function setEmail($email)
$this->email = $email;
$email
integer
string
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.
$answer = 42; $correct = false; $correct = (bool) $answer;
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.