public function create(Description $description)
    {
        return new Tip(
            new Identifier($description->getMandatoryProperty('id')),
            $description->getMandatoryProperty('text'),
            $description->getMandatoryProperty('type'),
            $description->getMandatoryProperty('agreeCount'),
            $description->getMandatoryProperty('disagreeCount')
        );
    }
public function create(Description $description)
    {
        return new Tip(
            new Identifier($description->getMandatoryProperty('id')),
            $description->getMandatoryProperty('text'),
            $description->getMandatoryProperty('type'),
            $description->getMandatoryProperty('agreeCount'),
            $description->getMandatoryProperty('disagreeCount')
        );
    }
public function create ( Description $ description ) { return new Tip ( new Identifier ( $ description -> getMandatoryProperty ( 'id' ) ) , $ description -> getMandatoryProperty ( 'text' ) , $ description -> getMandatoryProperty ( 'type' ) , $ description -> getMandatoryProperty ( 'agreeCount' ) , $ description -> getMandatoryProperty ( 'disagreeCount' ) ) ; }
Create a tip from a description.

@param Description $description The tip description.

@return Tip
Create a tip from a description .