src/Entity.php
public function set($property, $value = null)
    {
        if (is_string($property) && $value != '') {
            $property = [$property => $value];
        }

        foreach ($property as $name => $value) {
            $this->properties[$name] = $value;
        }

        return $this;
    }
public function set($property, $value = null)
    {
        if (is_string($property) && $value != '') {
            $property = [$property => $value];
        }

        foreach ($property as $name => $value) {
            $this->properties[$name] = $value;
        }

        return $this;
    }
public function set ( $ property , $ value = null ) { if ( is_string ( $ property ) && $ value != '' ) { $ property = [ $ property => $ value ] ; } foreach ( $ property as $ name => $ value ) { $ this -> properties [ $ name ] = $ value ; } return $ this ; }
Sets a single property inside this entity
@param string|array $property The name of property to set or a list of
properties with their respective values
@param mixed $value The value to set to the property
@return $this
@uses $properties
Sets a single property inside this entity